package com.anjubao.parking.municipal.basezone.feign;

import com.anjubao.parking.municipal.basezone.dto.Base64Dto;
import com.anjubao.parking.municipal.basezone.dto.FileUploadResDTO;
import com.anjubao.parking.municipal.common.dto.ApiResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * serviceName:municipalparking-file-service
 * @author anjubao
 */
public interface FileFeignService {
    /**
     * base64图片上传
     * @param base64 图片base64字符串
     * @return 图片url
     */
    @PostMapping("/file/uploadBase64")
    ApiResult<FileUploadResDTO> uploadBase64(@RequestParam("base64") String base64);


    /**
     * base64图片上传
     * @param base64Dto base64对象
     * @return 图片url
     */
    @PostMapping("/file/Base64")
    ApiResult<FileUploadResDTO> Base64(@RequestBody Base64Dto base64Dto);
}
